package com.quick.controller;

import com.quick.excption.BusinessException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wangxin332 on 2018/2/9.
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("excp")
    public String test() throws Exception{
        throw new BusinessException("101", "Sam 错误");
    }
}
